import {Component, forwardRef, Input, OnInit} from '@angular/core';
import {NG_VALUE_ACCESSOR} from '@angular/forms';
import {BaseSelect2Component} from '@sb/base/select/base-select2.component';
import {SysBackupTemplateSearchForm} from '../entity/sys-backup-template-search-form';


@Component({
    selector: 'sys-backup-template-select',
    templateUrl: './sys-backup-template-select.component.html',
    styleUrls: ['./sys-backup-template-select.component.less'],
    providers: [
        {
            provide: NG_VALUE_ACCESSOR,
            useExisting: forwardRef(() => SysBackupTemplateSelectComponent),
            multi: true
        }
    ]
})
export class SysBackupTemplateSelectComponent extends BaseSelect2Component<SysBackupTemplateSearchForm> implements OnInit {

    @Input()
    allowClear = true;

    @Input() mode;

    @Input()
    valueChange: (value: string | string[] | object) => any;

    ngOnInit() {
        super.ngOnInit();
    }

    doInit() {
    }

}
